package com.manolo.server.listener;

import com.manolo.server.event.ServerDataEvent;
/**
 * 
 * @author meyer
 * Actions of server 
 */
public interface ServerCommunicationListener {
	
	/**
	 * Server dispatch when has new connection
	 * @param event
	 */
	public void onNewConnection(ServerDataEvent event);
	
	/**
	 * Server dispatch when has new message of the client
	 * @param event
	 */
	public void onReceiveMessage(ServerDataEvent event);
	
	
	/**
	 * Server dispatch when a connection down
	 * @param event
	 */
	public void onCloseConnetion(ServerDataEvent event);
	
  	
}
